package com.sdk.paas.core;

import lombok.Data;

import java.util.Map;

@Data
public class HttpLogEntity {

    private String type;

    private String url;

    private Object params;
    /**
     * http状态码
     */
    private Integer code;

    private String responseBody;

    private Map<String, String> headers;

    private String errorMsg;

    private Exception exception;
    private Long startTime;
    private Long endTime;
    private Long reqTime;
    private String printTime;


    public HttpLogEntity(String type, String url, Object params, Map<String, String> headers, Long startTime) {
        this.type = type;
        this.url = url;
        this.params = params;
        this.headers = headers;
        this.startTime = startTime;
    }
}
